<template>
  <div class="dy-main InsuranceQueryResult">
    <div class="dy-header">
      <x-header :right-options="{showMore: false}" :left-options="{preventGoBack:true}" @on-click-back="back">购买结果</x-header>
    </div>
    <div class="dy-body">
      <div class="contant">
        <img v-if="status === '0'" class="statusResult" src="../../assets/img/Insurance/success.png">
        <img v-if="status === '1'" class="statusResult" src="../../assets/img/Insurance/fail.png">
        <div v-if="status === '0'" class="statusMsg">撤单成功</div>
        <div v-if="status === '1'" class="statusMsg">撤单失败</div>
        <div class="buttonClick" @click="gotoInsMain()">完成</div>
      </div>
    </div>
   </div>
</template>

<script>
export default {
  data () {
    return {
      status: '1'
    }
  },
  methods: {
    gotoInsMain () {
      this.$router.push({name: 'InsuranceDealSearch'})
    },
    back () {
      this.$publicFun.goBack(this)
    }
  }
}
</script>

<style lang="less">
.InsuranceQueryResult{
  .dy-body{
    background: #fff;
    .contant{
      border-top: 0.03rem solid #F7F8FA;
      .statusResult{
        width: 1.08rem;
        height: 1.08rem;
        margin: 1.59rem 3.21rem 0.52rem 3.21rem;
      }
      .statusMsg {
        font-size: 0.3rem;
        height: 0.3rem;
        text-align: center;
        font-weight: bolder;
        margin-bottom: 4.13rem;
      }
      .buttonClick{
        height: 0.88rem;
        line-height: 0.88rem;
        width: 3.3rem;
        margin-left: 2.1rem;
        background: #EC1B30;
        border-radius: 0.06rem;
        color: #fff;
        text-align: center;
        font-size: 0.34rem;
      }
    }
  }
}
</style>
